<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
		<link href="/res/css/admin/style.css" media="screen" rel="Stylesheet" type="text/css" />
		<script type="text/javascript" src="/res/js/jquery.js"></script>
		<script type="text/javascript" src="/res/js/jquery.ui.js"></script>
		<script type="text/javascript" src="/res/js/main.js"></script>
		<title></title>
	</head>
<body>
<div id="header">
	<div id="site-title">Frog CMS</div>
	<div id="mainTabs">
		<ul>
			<li><a href="" class="current">Категории</a></li>
			<li><a href="">Фотографии</a></li>
			<li class="right"><a href="">Administration</a></li>
			<li class="right"><a href="">Пользователи</a></li>
		</ul>
	</div>
</div>

<div id="main">
	<div id="content-wrapper">
		<div id="content">
			<h1>Pages</h1>
			<div id="site-map-def">
				<div class="page">Категория</div>
				<div class="status">Статус</div>
				<div class="modify">Редактировать</div>
			</div>
		<ul id="site-map">
			{foreach from=$category item=doc}
			<li id="page_{$doc.id}" class="node level-{$doc.level} no-children">
				<div class="page">
					<span class="w1"><a href="/admin/category/edit/{$doc.slug}"><span class="title">{$doc.name_rus}</span></a></span>
				</div>
				<div class="status draft-status">{if $doc.published}Опубликована{else}Не опубликована{/if}</div> 
				<div class="modify">
					<a href="/admin/category/add/{$doc.id}/"><img src="/res/img/admin/plus.png" align="middle" alt="Add child" /></a>&nbsp; 
					{if !$doc.parent}<a class="remove" href="/admin/category/delete/{$doc.id}/"><img src="/res/img/admin/icon-remove.gif" align="middle" alt="Remove page" /></a>{/if}
				</div>
			</li>
			{if $doc.parent}
				{foreach from=$doc.parent item=parent}
				<li id="page_{$parent.id}" class="node level-{$parent.level} no-children">
				<div class="page">
					<span class="w1"><a href="/admin/category/edit/{$parent.slug}"><span class="title">{$parent.name_rus}</span></a></span>
				</div>
				<div class="status draft-status">{if $parent.published}Опубликована{else}Не опубликована{/if}</div> 
				<div class="modify">
					<a href="/admin/category/add/{$parent.id}/"><img src="/res/img/admin/plus.png" align="middle" alt="Add child" /></a>&nbsp; 
					<a class="remove" href="/admin/category/delete/{$parent.id}/"><img src="/res/img/admin/icon-remove.gif" align="middle" alt="Remove page" /></a>
				</div>
			</li>
				{/foreach}
			{/if}
			{/foreach}
		</ul>
		</div>
	</div>
</div>
</body>
</html>

<br style="clear: both;">